First, ArraysFor the tool class for array manipulation, some methods for array sorting and binary searching are provided.Common methods:1. public static string toString (Int[] a): Converts an array of type int to a string.Converted to a string after
1: Regular Expressions (understanding)(1) A string that conforms to a certain rule(2) Common rulesA: Characterx character X. Example: ' A ' denotes character a\ \ backslash character.\ n New Line (newline) character (' \u000a ')\ r return character (
1: Regular Expressions (understanding)(1) A string that conforms to a certain rule(2) Common rulesA: Characterx character X. Example: ' A ' denotes character a\ \ backslash character.\ n New Line (newline) character (' \u000a ')\ r return character (
1 Object objectsThe core idea of object-oriented: "Find the right object and do the right thing".The right object:
Describe the class yourself and create the object yourself.
Sun has described a lot of commonly used classes that can be
Differences between test, exec, and match in regular expressions and the use of parentheses, execmatch
Simple differences between test, exec, and match
1. test
Test returns a Boolean value to check whether the corresponding string contains a
Do a few exercises, previously did not how to use the method these times used more.String String method1. Interception of str.substring (beginindex,endindex) substring (beginindex)2.indexOf (), locates the index position of the target Str in the
Before proceeding to the next step, let's take a quick look at the basic terms of regular expressions.Capture:When you use a subexpression to match the results of a regular expression. The Capture and CaptureCollection classes indicate the results
When using the Date object in JavaScript, a common operation is output. However, the format output by the toString () method provided by the Date object cannot meet the diversified needs of users. I was wondering if I could introduce the form of the
After some design, this function is finally completed. After this js is introduced, you can configure the format string to output various custom date formats.
FlowchartWe can see that the so-called Format String is actually a string containing
The following lists various forms of verification functions that are commonly used in development, including email, phone, ip, website, date, ID card, etc.
# Region verified email address
/** // /// Verify the email address/// /// /// Public
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.